/* 
* File: vector_resize.cpp
* 测试用例修改自 http://www.cplusplus.com/reference/stl/vector/vector/resize/
* 编译命令：
* 	c++ -Wall -g  -I ../Include/ vector_resize.cpp -o vector_resize 
* 在这里假设所有的所需的头文件放在../Include里面
*/
// resizing vector
#include <iostream>
//#include <vector>
#define vector Vector
#include "Vector.h"
using namespace std;

int main ()
{
	vector<int> myvector;

	unsigned int i;

	// set some initial content:
	for (i=1;i<10;i++) myvector.push_back(i);

	myvector.resize(5);
	myvector.resize(8,100);
	myvector.resize(12);

	cout << "myvector contains:";
	for (i=0;i<myvector.size();i++)
		cout << " " << myvector[i];

	cout << endl;

	return 0;
}
